#!/usr/bin/env python3
"""
启动HTTP MCP服务器
"""
import subprocess
import sys
import os

def start_server():
    """启动服务器"""
    print("启动MySQL MCP HTTP服务器...")
    print("访问 http://localhost:8000/docs 查看API文档")
    print("RPC端点: http://localhost:8000/rpc")
    print("按 Ctrl+C 停止服务器")
    
    try:
        subprocess.run([sys.executable, "mysql_http_server.py"])
    except KeyboardInterrupt:
        print("\n服务器已停止")

if __name__ == "__main__":
    start_server()